package com.thingsgrid.mqtthelper.service;

import org.springframework.stereotype.Service;

/**
 * 功能说明：mqtt业务处理
 *
 * @author 李龙飞
 * @since 2019/8/27 9:44
 */
@Service
public interface MqttHelperService {

	/**
	 *说明：新增mqtt topic
	 *@author lilongfei
	 *@since 2019/8/27 9:47
	 */
	boolean addMqttTopic(String[] topicArr);

	/**
	 *说明：删除Mqtt topic
	 *@author lilongfei
	 *@since 2019/8/27 9:47
	 */
	boolean removeMqttTopic(String topic);

	/**
	 *说明：发送消息
	 *@author lilongfei
	 *@since 2019/8/27 9:48
	 */
	Object sendMsg(String topic, String jsonData);
}
